<template>
  <view class="uni-rate box">
    <view
      class="icon icon-star fz-16"
      :class="{'icon-star-full cl-main': rate > index}"
      v-for="(item, index) in 5"
      :key="index"
    ></view>
  </view>
</template>

<script>
export default {
  name: "uniRate",

  props: {
    rate: {
      type: Number,
      default: 0
    }
  }
};
</script>

<style lang="scss" scoped>
</style>
